<?php
header("Content-type: text/xml; charset=utf-8");
include("connado.php");

$sql = "insert into smstrans(transid, ani, msgout, fromid, bulkid, sender)values(gentransid(), ?, ?, ?, ?, ?)";
$db->Execute($sql);
$stmt = $db->Prepare($sql);
$msg = $_REQUEST['msg'];
$arr = array($_REQUEST['mobile'],iconv('tis620','utf8',$msg), "3", "1", "1");
$db->Execute($stmt, $arr);
echo "<result>";
echo "<status>OK</status>";
echo "<detail>suscess</detail>";
echo "</result>";

?>